.class Lcom/waiqin365/base/login/co;
.super Ljava/lang/Thread;


# instance fields
.field final synthetic a:Ljava/lang/String;

.field final synthetic b:Lcom/waiqin365/base/login/cj;


# direct methods
.method constructor <init>(Lcom/waiqin365/base/login/cj;Ljava/lang/String;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/base/login/co;->b:Lcom/waiqin365/base/login/cj;

    iput-object p2, p0, Lcom/waiqin365/base/login/co;->a:Ljava/lang/String;

    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 2

    invoke-super {p0}, Ljava/lang/Thread;->run()V

    :try_start_0
    invoke-static {}, Lcom/hyphenate/chat/EMClient;->getInstance()Lcom/hyphenate/chat/EMClient;

    move-result-object v0

    invoke-virtual {v0}, Lcom/hyphenate/chat/EMClient;->groupManager()Lcom/hyphenate/chat/EMGroupManager;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/base/login/co;->a:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/hyphenate/chat/EMGroupManager;->getGroupFromServer(Ljava/lang/String;)Lcom/hyphenate/chat/EMGroup;
    :try_end_0
    .catch Lcom/hyphenate/exceptions/HyphenateException; {:try_start_0 .. :try_end_0} :catch_0

    :goto_0
    invoke-static {}, Lcom/waiqin365/lightapp/im/domain/c;->a()Lcom/waiqin365/lightapp/im/domain/c;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/base/login/co;->b:Lcom/waiqin365/base/login/cj;

    iget-object v1, v1, Lcom/waiqin365/base/login/cj;->a:Lcom/waiqin365/base/login/LoginMainActivity;

    invoke-virtual {v1}, Lcom/waiqin365/base/login/LoginMainActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/im/domain/c;->a(Landroid/content/Context;)Lcom/waiqin365/lightapp/im/domain/c;

    move-result-object v0

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/im/domain/c;->c()V

    iget-object v0, p0, Lcom/waiqin365/base/login/co;->b:Lcom/waiqin365/base/login/cj;

    iget-object v0, v0, Lcom/waiqin365/base/login/cj;->a:Lcom/waiqin365/base/login/LoginMainActivity;

    new-instance v1, Lcom/waiqin365/base/login/cp;

    invoke-direct {v1, p0}, Lcom/waiqin365/base/login/cp;-><init>(Lcom/waiqin365/base/login/co;)V

    invoke-virtual {v0, v1}, Lcom/waiqin365/base/login/LoginMainActivity;->runOnUiThread(Ljava/lang/Runnable;)V

    return-void

    :catch_0
    move-exception v0

    invoke-virtual {v0}, Lcom/hyphenate/exceptions/HyphenateException;->printStackTrace()V

    goto :goto_0
.end method
